<template>
  <div class="home-container">
    <div class="hero-section">
      <div class="gradient-bg"></div>
      <div class="container">
        <h1 class="title animate-title">AI智能助手应用平台</h1>
        <p class="subtitle animate-subtitle">探索AI的无限可能，体验智能对话的魅力</p>
        
        <div class="terminal-window animate-up">
          <div class="terminal-header">
            <div class="terminal-button red"></div>
            <div class="terminal-button yellow"></div>
            <div class="terminal-button green"></div>
            <div class="terminal-title">yuai-terminal</div>
          </div>
          <div class="terminal-body">
            <div class="terminal-line">
              <span class="terminal-prompt">root@yuai:</span>
              <span class="terminal-path">$</span>
              <span class="terminal-command typing-effect">./launch-ai-platform.sh</span>
            </div>
            <div class="terminal-line typing-line" style="animation-delay: 800ms">
              <span class="terminal-output">正在初始化 AI 引擎...</span>
            </div>
            <div class="terminal-line typing-line" style="animation-delay: 1600ms">
              <span class="terminal-output">加载智能助手模型...</span>
            </div>
            <div class="terminal-line typing-line" style="animation-delay: 2400ms">
              <span class="terminal-output">连接服务器...</span>
            </div>
            <div class="terminal-line typing-line" style="animation-delay: 3200ms">
              <span class="terminal-success">AI 平台启动成功! 选择下方应用开始体验</span>
            </div>
            <div class="terminal-cursor"></div>
          </div>
        </div>
        
        <div class="app-selection">
          <div class="app-card animate-card" style="animation-delay: 3800ms" @click="showCodeMasterSuggestions = true">
            <div class="card-glow"></div>
            <div class="app-icon">
              <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                <path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" 
                  fill="#42b883" stroke="#ffffff" stroke-width="0.5" />
              </svg>
            </div>
            <h2 class="app-title animate-text">AI 编程大师</h2>
            <p class="app-desc animate-text" style="animation-delay: 200ms">与AI编程大师对话，获取编程帮助和技术指导</p>
            <div class="app-features">
              <div class="feature-item animate-text" style="animation-delay: 300ms">• 代码生成与优化</div>
              <div class="feature-item animate-text" style="animation-delay: 400ms">• 技术问题解答</div>
            </div>
            <div class="card-action animate-text" style="animation-delay: 500ms">
              <span class="action-text">立即体验</span>
              <span class="action-arrow">→</span>
            </div>
          </div>
          
          <div class="app-card animate-card" style="animation-delay: 4200ms" @click="showSuperAgentSuggestions = true">
            <div class="card-glow"></div>
            <div class="app-icon">
              <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                <path d="M21 12.5c0 .88-.23 1.71-.63 2.42a4.91 4.91 0 01-4.27 2.48 4.91 4.91 0 01-4.27-2.48 4.9 4.9 0 01-.63-2.42c0-2.76 2.24-5 5-5s4.9 2.24 4.9 5h-.1z" 
                  fill="#FF9FF3" stroke="#ffffff" stroke-width="0.5" />
                <path d="M13.73 4c-.77.33-1.33 1.11-1.33 2 0 .89.55 1.67 1.33 2 .77-.33 1.33-1.11 1.33-2 0-.89-.55-1.67-1.33-2z" 
                  fill="#FF9FF3" stroke="#ffffff" stroke-width="0.5" />
                <path d="M13.73 16c-.77.33-1.33 1.11-1.33 2 0 .89.55 1.67 1.33 2 .77-.33 1.33-1.11 1.33-2 0-.89-.55-1.67-1.33-2z" 
                  fill="#FF9FF3" stroke="#ffffff" stroke-width="0.5" />
                <path d="M17.73 8c-.77.33-1.33 1.11-1.33 2 0 .89.55 1.67 1.33 2 .77-.33 1.33-1.11 1.33-2 0-.89-.55-1.67-1.33-2z" 
                  fill="#FF9FF3" stroke="#ffffff" stroke-width="0.5" />
                <path d="M9.73 8c-.77.33-1.33 1.11-1.33 2 0 .89.55 1.67 1.33 2 .77-.33 1.33-1.11 1.33-2 0-.89-.55-1.67-1.33-2z" 
                  fill="#FF9FF3" stroke="#ffffff" stroke-width="0.5" />
                <path d="M7 12c-.77.33-1.33 1.11-1.33 2 0 .89.55 1.67 1.33 2 .77-.33 1.33-1.11 1.33-2 0-.89-.55-1.67-1.33-2z" 
                  fill="#FF9FF3" stroke="#ffffff" stroke-width="0.5" />
              </svg>
            </div>
            <h2 class="app-title animate-text">AI 超级智能体</h2>
            <p class="app-desc animate-text" style="animation-delay: 200ms">与超级智能AI进行对话，解决各种问题</p>
            <div class="app-features">
              <div class="feature-item animate-text" style="animation-delay: 300ms">• 多步骤推理能力</div>
              <div class="feature-item animate-text" style="animation-delay: 400ms">• 复杂问题分析</div>
            </div>
            <div class="card-action animate-text" style="animation-delay: 500ms">
              <span class="action-text">立即体验</span>
              <span class="action-arrow">→</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 编程大师建议问题弹窗 -->
    <div class="suggestion-modal" v-if="showCodeMasterSuggestions" @click.self="showCodeMasterSuggestions = false">
      <div class="suggestion-card animate-popup">
        <div class="suggestion-header code-header">
          <h2>AI编程大师使用指南</h2>
          <button class="close-btn" @click="showCodeMasterSuggestions = false">×</button>
        </div>
        
        <div class="suggestion-content">
          <p>AI编程大师可以帮您解答各种编程问题，生成代码示例，优化算法，以及提供技术学习指导。以下是一些建议的提问方式：</p>
          
          <div class="suggestion-examples">
            <div class="suggestion-category">
              <h3>代码生成</h3>
              <div class="example-item code-example" @click="goToCodeMasterWithQuestion('编写一个Python函数，实现快速排序算法')">
                <span class="example-icon">📝</span>
                <span>编写一个Python函数，实现快速排序算法</span>
              </div>
              <div class="example-item code-example" @click="goToCodeMasterWithQuestion('请用Vue.js实现一个简单的待办事项组件')">
                <span class="example-icon">⚙️</span>
                <span>请用Vue.js实现一个简单的待办事项组件</span>
              </div>
            </div>
            
            <div class="suggestion-category">
              <h3>代码优化</h3>
              <div class="example-item code-example" @click="goToCodeMasterWithQuestion('如何优化这段React代码的性能:\n\nfunction App() {\n  const [data, setData] = useState([]);\n  useEffect(() => {\n    fetch(\'/api/data\')\n      .then(res => res.json())\n      .then(data => setData(data));\n  });\n  return <div>{data.map(item => <div key={item.id}>{item.name}</div>)}</div>\n}')">
                <span class="example-icon">🚀</span>
                <span>如何优化React代码中的useEffect性能问题</span>
              </div>
              <div class="example-item code-example" @click="goToCodeMasterWithQuestion('帮我分析并优化这个时间复杂度为O(n²)的算法')">
                <span class="example-icon">⏱️</span>
                <span>帮我分析并优化这个时间复杂度为O(n²)的算法</span>
              </div>
            </div>
            
            <div class="suggestion-category">
              <h3>技术指导</h3>
              <div class="example-item code-example" @click="goToCodeMasterWithQuestion('解释Docker容器与虚拟机的区别，并提供简单的Dockerfile示例')">
                <span class="example-icon">🐳</span>
                <span>解释Docker容器与虚拟机的区别，并提供Dockerfile示例</span>
              </div>
              <div class="example-item code-example" @click="goToCodeMasterWithQuestion('如何使用JWT实现用户身份验证')">
                <span class="example-icon">🔐</span>
                <span>如何使用JWT实现用户身份验证</span>
              </div>
            </div>
          </div>
        </div>
        
        <div class="suggestion-footer">
          <button class="direct-btn" @click="goToCodeMaster">直接进入</button>
          <button class="primary-btn code-btn" @click="goToCodeMasterWithQuestion('您好，请问AI编程大师能帮我解决哪些编程问题？')">
            了解更多功能
          </button>
        </div>
      </div>
    </div>
    
    <!-- 超级智能体建议问题弹窗 -->
    <div class="suggestion-modal" v-if="showSuperAgentSuggestions" @click.self="showSuperAgentSuggestions = false">
      <div class="suggestion-card animate-popup">
        <div class="suggestion-header">
          <h2>AI超级智能体使用指南</h2>
          <button class="close-btn" @click="showSuperAgentSuggestions = false">×</button>
        </div>
        
        <div class="suggestion-content">
          <p>超级智能体能够理解复杂问题，执行多轮推理，并提供详细解答。以下是一些建议的提问方式：</p>
          
          <div class="suggestion-examples">
            <div class="suggestion-category">
              <h3>专业知识咨询</h3>
              <div class="example-item" @click="goToSuperAgentWithQuestion('请详细解释神经网络的工作原理和应用场景')">
                <span class="example-icon">🧠</span>
                <span>请详细解释神经网络的工作原理和应用场景</span>
              </div>
              <div class="example-item" @click="goToSuperAgentWithQuestion('如何通过Python实现简单的数据可视化？')">
                <span class="example-icon">🐍</span>
                <span>如何通过Python实现简单的数据可视化？</span>
              </div>
            </div>
            
            <div class="suggestion-category">
              <h3>创意生成</h3>
              <div class="example-item" @click="goToSuperAgentWithQuestion('帮我策划一个有趣的周末自驾游路线')">
                <span class="example-icon">🚗</span>
                <span>帮我策划一个有趣的周末自驾游路线</span>
              </div>
              <div class="example-item" @click="goToSuperAgentWithQuestion('设计一个创新的智能家居产品概念')">
                <span class="example-icon">💡</span>
                <span>设计一个创新的智能家居产品概念</span>
              </div>
            </div>
            
            <div class="suggestion-category">
              <h3>问题解析</h3>
              <div class="example-item" @click="goToSuperAgentWithQuestion('分析当前新能源汽车行业的发展趋势和挑战')">
                <span class="example-icon">🔋</span>
                <span>分析当前新能源汽车行业的发展趋势和挑战</span>
              </div>
              <div class="example-item" @click="goToSuperAgentWithQuestion('如何提高自己的学习效率和时间管理能力？')">
                <span class="example-icon">⏱️</span>
                <span>如何提高自己的学习效率和时间管理能力？</span>
              </div>
            </div>
          </div>
        </div>
        
        <div class="suggestion-footer">
          <button class="direct-btn" @click="goToSuperAgent">直接进入</button>
          <button class="primary-btn" @click="goToSuperAgentWithQuestion('您好，请问超级智能体可以帮我做什么？')">
            了解更多功能
          </button>
        </div>
      </div>
    </div>
    
    <app-footer />
  </div>
</template>

<script>
import AppFooter from '../components/AppFooter.vue'

export default {
  name: 'HomeView',
  components: {
    AppFooter
  },
  data() {
    return {
      showCodeMasterSuggestions: false,
      showSuperAgentSuggestions: false
    }
  },
  methods: {
    goToCodeMaster() {
      this.showCodeMasterSuggestions = false;
      this.$router.push('/code-master');
    },
    goToCodeMasterWithQuestion(question) {
      this.showCodeMasterSuggestions = false;
      this.$router.push({ 
        path: '/code-master',
        query: { 
          q: question 
        }
      });
    },
    goToSuperAgent() {
      this.showSuperAgentSuggestions = false;
      this.$router.push('/super-agent');
    },
    goToSuperAgentWithQuestion(question) {
      this.showSuperAgentSuggestions = false;
      this.$router.push({ 
        path: '/super-agent',
        query: { 
          q: question 
        }
      });
    }
  },
  head: {
    title: 'AI智能助手 - 专业的AI对话系统',
    meta: [
      { name: 'description', content: 'AI智能助手提供专业的AI对话服务，包括AI编程大师和AI超级智能体，解答您的各类问题。' },
      { name: 'keywords', content: 'AI助手,人工智能,智能对话,AI编程顾问,AI问答' }
    ]
  }
}
</script>

<style scoped>
/* 主容器样式 */
.home-container {
  width: 100%;
  background-color: #111;
  color: #f5f5f5;
  min-height: 100vh;
}

/* 背景样式 */
.hero-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: #0c0e16;
}

.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(121, 40, 202, 0.2), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(41, 121, 255, 0.2), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 100%);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 标题动画 */
.title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #aaccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.animate-title {
  animation: slideDown 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(-30px);
}

.subtitle {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
  line-height: 1.5;
}

.animate-subtitle {
  animation: fadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

/* 终端窗口样式 */
.terminal-window {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 70px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.3s;
}

.animate-up {
  animation: slideUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
  transform: perspective(1000px) rotateX(2deg) translateY(30px);
}

.terminal-window:hover {
  transform: perspective(1000px) rotateX(0deg);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #333;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.2s;
}

.terminal-button.red {
  background-color: #ff5f56;
}

.terminal-button.yellow {
  background-color: #ffbd2e;
}

.terminal-button.green {
  background-color: #27c93f;
}

.terminal-button:hover {
  transform: scale(1.1);
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #aaa;
  font-size: 14px;
  font-family: 'Roboto Mono', monospace;
}

.terminal-body {
  padding: 25px;
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  color: #ddd;
  line-height: 1.6;
  position: relative;
}

.terminal-line {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
}

.typing-line {
  opacity: 0;
  animation: typingFadeIn 0.5s forwards;
}

.terminal-prompt {
  color: #4f9;
  margin-right: 5px;
}

.terminal-path {
  color: #56a0ff;
  margin-right: 5px;
}

.terminal-command {
  color: #ddd;
}

.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  width: 0;
  animation: typing 0.8s steps(30) forwards;
}

.terminal-output {
  color: #aaa;
  padding-left: 20px;
}

.terminal-success {
  color: #4f9;
  padding-left: 20px;
}

.terminal-cursor {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: 10px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.7);
  animation: blink 1s step-end infinite;
  margin-top: 20px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes typingFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* 应用卡片样式 */
.app-selection {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.app-card {
  width: 320px;
  background-color: rgba(20, 21, 28, 0.7);
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.4s, box-shadow 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.animate-card {
  animation: cardPopup 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.animate-text {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 30%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(121, 40, 202, 0.2);
}

.app-card:hover .card-glow {
  opacity: 1;
}

.app-card:hover .action-arrow {
  transform: translateX(5px);
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  position: relative;
}

.app-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.app-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.5px;
}

.app-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-features {
  text-align: left;
  margin-top: 20px;
  margin-bottom: 30px;
}

.feature-item {
  color: #6fbbff;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 10px;
}

.action-text {
  font-weight: 500;
  color: #fff;
}

.action-arrow {
  margin-left: 8px;
  transition: transform 0.3s;
}

/* 动画定义 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: perspective(1000px) rotateX(2deg) translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: perspective(1000px) rotateX(2deg) translateY(0); 
  }
}

@keyframes cardPopup {
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

/* 响应式样式 */
@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .terminal-window {
    max-width: 100%;
    transform: none;
  }
  
  .animate-up {
    transform: translateY(30px);
  }
  
  .app-card {
    width: 100%;
    max-width: 320px;
  }
}

/* 建议模态框样式 */
.suggestion-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.suggestion-card {
  background: linear-gradient(135deg, #181a29 0%, #0f1221 100%);
  border-radius: 16px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.animate-popup {
  animation: popupScale 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform: scale(0.9);
  opacity: 0;
}

@keyframes popupScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.suggestion-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.suggestion-header h2 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #8596ff, #56ccf2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

.suggestion-content {
  padding: 25px;
}

.suggestion-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0;
  line-height: 1.5;
}

.suggestion-examples {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.suggestion-category h3 {
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  color: #6fbbff;
  font-weight: 500;
}

.example-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.example-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.example-icon {
  font-size: 1.5rem;
  display: inline-block;
  width: 25px;
  text-align: center;
}

.suggestion-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  background: rgba(0, 0, 0, 0.2);
}

.primary-btn, .direct-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn {
  background: linear-gradient(90deg, #5b68df, #3c89e8);
  color: #fff;
}

.direct-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(91, 104, 223, 0.3);
}

.direct-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .suggestion-examples {
    gap: 20px;
  }
  
  .suggestion-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .primary-btn, .direct-btn {
    width: 100%;
  }
}

/* 编程大师特定样式 */
.code-header {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(66, 184, 131, 0.2));
}

.code-header h2 {
  background: linear-gradient(90deg, #42b883, #35495e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.code-btn {
  background: linear-gradient(90deg, #42b883, #2c3e50);
}

.code-btn:hover {
  box-shadow: 0 5px 15px rgba(66, 184, 131, 0.3);
}

.code-example:hover {
  background: rgba(66, 184, 131, 0.2);
}
</style> 